How to return custom error message from controller method validation

89

$this->validate(
    $request, 
    ['thing' => 'required'],
    ['thing.required' => 'this is my custom error message for required']
);

Comments

Submit
0 Comments